<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <img src="./小红.png" alt="">
    <script>
        var oImg = document.getElementsByTagName("img")[0];
        oImg.onclick = function(){
            oImg.style.width = "123px";
            oImg.style.height = "93px";
            oImg.src = "./小蓝.png";
        }
    </script>
</body>
</html>